import { BasicColumn } from '@/components/Table/src/types/table';

export function getBasicColumns(): BasicColumn[] {
  return [
    {
      title: '信息菜单',
      dataIndex: 'name',
      width: 200,
    },
    // {
    //   title: '排序',
    //   dataIndex: 'name',
    //   width: 100,
    // },
    {
      title: '字段名称',
      dataIndex: 'dataType',
      width: 180,
    },
    {
      title: '字段类型',
      dataIndex: 'itemType',
      width: 100,
    },
    {
      title: '字段来源',
      dataIndex: 'isInternalInterface',
      slots: { customRender: 'isInternalInterface' },
      width: 60,
    },
    {
      title: '来源类型',
      dataIndex: 'itmeSource',
      width: 100,
    },
    {
      title: '状态',
      dataIndex: 'enabled',
      slots: { customRender: 'enabled' },
      width: 100,
    },
    {
      title: '创建时间',
      dataIndex: 'createTime',
      width: 120,
    },
  ];
}
